package com.lwj.mapper.system;

import com.lwj.dto.system.CategoryListDto;
import com.lwj.model.system.DictionaryCategory;
import com.lwj.vo.system.DictionaryCategoryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DictionaryCategoryMapper {
    int deleteByPrimaryKey(String categoryId);

    int insert(DictionaryCategory record);

    int insertSelective(DictionaryCategory record);

    DictionaryCategory selectByPrimaryKey(String categoryId);

    int updateByPrimaryKeySelective(DictionaryCategory record);

    int updateByPrimaryKey(DictionaryCategory record);

    DictionaryCategoryVo selectByCode(@Param("code") String code);

    List<DictionaryCategoryVo> categoryList(CategoryListDto dto);

    List<DictionaryCategoryVo> getById();
}